package ltd.tiantian.mall.dao;

import ltd.tiantian.mall.entity.TianTianMallSeckill;
import ltd.tiantian.mall.util.PageQueryUtil;

import java.util.List;
import java.util.Map;

public interface TianTianMallSeckillMapper {
    int deleteByPrimaryKey(Long seckillId);

    int insert(TianTianMallSeckill record);

    int insertSelective(TianTianMallSeckill record);

    TianTianMallSeckill selectByPrimaryKey(Long seckillId);

    int updateByPrimaryKeySelective(TianTianMallSeckill record);

    int updateByPrimaryKey(TianTianMallSeckill record);

    List<TianTianMallSeckill> findSeckillList(PageQueryUtil pageUtil);

    int getTotalSeckills(PageQueryUtil pageUtil);

    List<TianTianMallSeckill> findHomeSeckillList();

    int getHomeTotalSeckills(PageQueryUtil pageUtil);

    void killByProcedure(Map<String, Object> map);

    boolean addStock(Long seckillId);
}
